package carddemo;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        List<Card> ret = cardDemo.buyDeskCard();
        System.out.println(ret);
        System.out.println("洗牌：");
        cardDemo.shuffle(ret);
        System.out.println(ret);
        System.out.println("揭牌：");

        List<List<Card>> ret2 = cardDemo.test(ret);
        //无法知道是第几个人的牌
//        for (List<Card> cards : ret2){
//            System.out.println(cards);
//        }
        for ( int i = 0; i < ret2.size(); i++){
            System.out.println("第"+i+"个人的牌："+ret2.get(i));
        }
        System.out.println("剩余的牌：");
        System.out.println(ret);
    }
}
